package com.dao;

import com.pojo.Page;
import com.pojo.Worker;

import java.util.List;

public interface  WorkerDao {
    int addWorker(Worker w);

    int deleteWorkerById(long id);

    int updateWorker(Worker w);

    Worker queryById(long id);

    List<Worker> queryAllWorker();

    Worker queryByName(String name);

    int countWorkers();


    List<Worker> queryWorkerByIdUp(Page page);

    List<Worker> queryWorkerByIdDown(Page page);

    List<Worker> queryWorkerByNameUp(Page page);

    List<Worker> queryWorkerByNameDown(Page page);

    List<Worker> queryWorkerByWorkageUp(Page page);

    List<Worker> queryWorkerByWorkageDown(Page page);
}
